<template>
  <div>
    <h2>hello</h2>
    <div class="pay-address">{{ payAddress }}</div>
    <canvas ref="qrcodeCanvas" :width="canvasSize" :height="canvasSize"></canvas>
  </div>
</template>

<script>
import QRCode from 'qrcodejs2'
import { getQrcode } from '@/api/alipay'
export default {
  name: 'HotelSystemAdminCc',
  props: {
    qrcode: {
      type: String,
      required: true
    },
    width: {
      type: Number,
      default: 256
    },
    height: {
      type: Number,
      default: 256
    }
  },
  data () {
    return {
      qrcode: ''
    }
  },

  async mounted () {
    // 发送请求获取 qrcode 地址
    const response = await getQrcode()
    console.log(response)
  },

  methods: {

  }
}
</script>

<style lang="less" scoped>

</style>
